﻿using System;
using Atom.Common.CustomConfiguration;
using Atom.Common.Configuration;

namespace Atom.Common.ResourceProvider
{
    [ConfigurationElementType(typeof(DbResourceProviderConfigurationElement))]
    public class DbResourceProvider : IResourceProvider
    {
        public string ConnnectionStringName { get; private set; }
        public DbResourceProvider(string connectionStringName)
        {
            this.ConnnectionStringName = connectionStringName;
        }
        public object GetObject(string key)
        {
            throw new NotImplementedException();
        }
        public override string ToString()
        {
            return string.Format("{0}\n\tConncectionString Name:{1}", typeof(DbResourceProvider).FullName, this.ConnnectionStringName);
        }
    }
}